package com.chennan.common.domian;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @description: pageInfo 请求参数
 * @author: yexianliang
 * @create: 2020-10-29 18:52
 **/
@Data
public class PageInfoParam implements Serializable {
    private static final long serialVersionUID = -1185503882358880468L;

    @ApiModelProperty("页码")
    private Integer pageNum;

    @ApiModelProperty("每页条数")
    private Integer pageSize;

    @ApiModelProperty(hidden = true)
    public PageInfo getPageInfo(){
        return new PageInfo<>(pageNum, pageSize);
    }
}
